#include<iostream>
#include<unistd.h>
#include<fcntl.h>
int main()
{
    char buffer[1024];
    while(1)
    {
        ssize_t s=read(0,buffer,sizeof(buffer)-1);
        if(s>=0)
        {
            buffer[s]='\0';
            std::cout<<"echo#::"<<buffer<<std::endl;
        }
        else if(s<0)
        {
            std::cout<<"read error"<<std::endl;
            break;
        }
    }
    return 0;
}
